<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../day13/style.css">
    <style>
        .all{
            width:400px; height:400px;
            border: 4px solid red;
            position: relative;
            overflow: hidden;
        }
        .all>div{
            width:200px; height:300px;
            background: pink;
            float:left;
        }
        .all>p{
            width:100px; height:100px; background: blue;
            float:left;
            position: absolute;
            right: -103px;
            transition: all 2s linear;
        }
        .all:hover>p{
            right:100px;
        }
    </style>
</head>
<body>
    <div class="all">
        <div></div>
        <p>你滚</p>
    </div>
</body>
</html>